<?php 
namespace app\Admin\model;
use think\Model;
class Feedback extends Model
{
	public function select(){
		return Feedback::All();
	}
	public function fetch($msg_id){
		return $this->where('msg_id',$msg_id)
	    ->find();
	}
	public function upd($msg_id){
		$this->save([
	    	'msg_status'  => '0',
		],['msg_id' => $msg_id]);
	}

	public function del($msg_id){
		return Feedback::where('msg_id',$msg_id)->delete();
	}

	public function upd1($msg_id){
		$this->save([
	    	'msg_status'  => '1',
		],['msg_id' => $msg_id]);

	}

	public function upd2($data){
		return $this->save($data);
	}

	public function upd3($msg_id){
		$this->save([
	    	'order_id'  => '1',
		],['msg_id' => $msg_id]);
	}
}